package cn.bonoon.controllers;

import cn.bonoon.kernel.annotations.TransformField;
import cn.bonoon.kernel.support.models.AbstractItem;
import cn.bonoon.kernel.web.annotations.grid.AsColumn;
import cn.bonoon.kernel.web.annotations.grid.AsDataGrid;
import cn.bonoon.kernel.web.annotations.grid.GridOptions;
import cn.bonoon.kernel.web.annotations.grid.OperationType;

@AsDataGrid(condition = RawdataImportCondition.class, value = @GridOptions(operationWith = 380,operation=OperationType.LEFT,fitColumns=true))
public class RawdataImportItem extends AbstractItem implements RawdataImportDefine  {

	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4365600953215423388L;
	

	@AsColumn(width = 150, ordinal = 50)
	private String createAt;
	
	@AsColumn(width =200, ordinal = 10)
	private String name;

	@AsColumn(width = 150, ordinal = 30)
	private String title;
	
	@AsColumn(width = 100, ordinal = 40)
	private String total;
	
	@AsColumn(width = 100, ordinal = 45)
	private String correctCount;
	
	@AsColumn(width = 100, ordinal = 0)
	private String forbid;
	
	@TransformField("insuStatus")
	private int insuStatus;
	
	private int statusValue;
	
	private Long id;
	
	


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getStatusValue() {
		if (("基本医疗保险".equals(title)||"养老保险".equals(title)||"教育补贴".equals(title))&insuStatus==0) {
			return 0;
		}else if(("基本医疗保险".equals(title)||"养老保险".equals(title)||"教育补贴".equals(title))&insuStatus==1){
			return 1;
		}
		return null;
	}

	public void setStatusValue(int statusValue) {
		this.statusValue = statusValue;
	}
	
	

	public int getInsuStatus() {
		return insuStatus;
	}

	public void setInsuStatus(int insuStatus) {
		this.insuStatus = insuStatus;
	}

	public String getForbid() {
		return forbid;
	}

	public void setForbid(String forbid) {
		this.forbid = forbid;
	}

	public String getCreateAt() {
		return createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTotal() {
		return total;
	}

	public void setTotal(String total) {
		this.total = total;
	}

	public String getCorrectCount() {
		return correctCount;
	}

	public void setCorrectCount(String correctCount) {
		this.correctCount = correctCount;
	}

	
	
	
}
